﻿using System;

namespace Gonte.Xml.Serialization
{
    /// <summary>
    /// Helper object to deserialize a dictionary of primitives
    /// </summary>
    public class DictionaryItemPrimitive
        : IXmlSerializableObject
    {
        #region IXmlSerializableObject Members

        public XmlObjectSerializer GetSerializer()
        {
            throw new NotImplementedException();
        }

        public XmlObjectDeserializer GetDeserializer()
        {
            return new DictionaryItemPrimitiveDeserializer(this);
        }

        #endregion

        #region Properties

        public Object Key
        {
            get { return key_; }
            set { key_ = value; }
        }

        public Object Value
        {
            get { return value_; }
            set { value_ = value; }
        } 

        #endregion

        #region Fields

        private Object key_;
        private Object value_;

        #endregion
    }
}
